#ifndef TIMERBTN_H
#define TIMERBTN_H

#include <QPushButton>
#include <QTimer>

const uint16_t WEAT_TIME = 60;

//显示倒计时的按钮
class TimerBtn: public QPushButton
{
public:
    TimerBtn(QWidget *parent = nullptr);
    ~TimerBtn();

    void mouseReleaseEvent(QMouseEvent *e) override;
private:
    QTimer* _timer;
    int     _counter;
};

#endif // TIMERBTN_H
